package com.borqsprocessmanager.info;

import java.util.HashMap;

import android.os.Parcel;
import android.os.Parcelable;

public class ActionMapInfo implements Parcelable {

    public HashMap<String, ReceiverProcessInfo> actionMap = null;

    public ActionMapInfo() {
        actionMap = new HashMap<String, ReceiverProcessInfo>();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeMap(actionMap);
    }

    public static final Parcelable.Creator<ActionMapInfo> CREATOR = new Parcelable.Creator<ActionMapInfo>() {

        public ActionMapInfo createFromParcel(Parcel in) {
            return new ActionMapInfo(in);
        }

        public ActionMapInfo[] newArray(int size) {
            return new ActionMapInfo[size];
        }
    };

    private ActionMapInfo(Parcel in) {
        actionMap = in.readHashMap(ReceiverProcessInfo.class.getClassLoader());
    }

}
